
package com.aula.alex;

public class Exercicio4 
{  
     
   public static void main(String[] args) 
   {  
      String name = "Olá Java";  
      char[] newName = new char[name.length()];  
        
      for (int i = name.length() - 1, j = 0; i >= 0; i--, j++) 
      {  
         newName[j] = name.charAt(i);  
      }  
        
      System.out.println(newName);  
   }  
}